package com.holike.crm.activity.analyze;

import android.os.Bundle;

import com.holike.crm.R;
import com.holike.crm.base.BaseActivity;
import com.holike.crm.base.BaseFragment;
import com.holike.crm.base.BasePresenter;
import com.holike.crm.base.IntentValue;
import com.holike.crm.bean.MonthCompleteBean;
import com.holike.crm.fragment.analyze.MonthCompleteFragment;
import com.holike.crm.util.Constants;

import java.util.List;

/**
 * 各月完成率
 */
public class MonthCompleteRatioActivity extends BaseActivity {

    public static void start(BaseFragment<?, ?> fragment, String title, List<MonthCompleteBean> dataList) {
        IntentValue.getInstance().put(Constants.MONTH_COMPLETE, dataList);
        Bundle bundle = new Bundle();
        bundle.putString(Constants.TITLE, title);
        fragment.startActivity(MonthCompleteRatioActivity.class, bundle);
    }

    @Override
    protected BasePresenter attachPresenter() {
        return null;
    }

    @Override
    protected boolean isFullscreen() {
        return true;
    }

    @Override
    protected int getLayoutResourceId() {
        return R.layout.activity_common;
    }

    @Override
    protected void init(Bundle savedInstanceState) {
        startFragment(new MonthCompleteFragment(), getIntent().getExtras(), false);
    }
}
